//
//  MeTotalAssetsVC.m
//  BrushFace
//
//  Created by Zzz on 16/1/17.
//  Copyright © 2016年 Zzz. All rights reserved.
//

#import "MeTotalAssetsVC.h"
#import "MySceneModel.h"

@interface MeTotalAssetsVC ()

@property (nonatomic,strong)MySceneModel *reqModel;

@end

@implementation MeTotalAssetsVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    [self.navBar setTitle:@"总资产"];
    [self.navBar setLeftBtn:NAV_BAR_LEFT_BTN_TYPE_BLUE];
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];
    
    _reqModel = [MySceneModel SceneModel];
    
    [_reqModel fetchMyAllTotalInfoAndCB:^(id output) {
        self.amountLabel.text = [NSString stringWithFormat:@"%.2f",[[NSString stringWithFormat:@"%@",output[@"totalAmount"]] floatValue]];
        self.waitRepayInterestLabel.text = [NSString stringWithFormat:@"%.2f",[[NSString stringWithFormat:@"%@",output[@"torepayinterest"]] floatValue]];
        self.waitRepayMoneyLabel.text = [NSString stringWithFormat:@"%@",output[@"torepaycapital"]];
        self.waitGetIncomeLabel.text = [NSString stringWithFormat:@"%@",output[@"toincomeinterest"]];
        self.waitGetMoneyLabel.text = [NSString stringWithFormat:@"%@",output[@"toincomecapital"]];
        self.balanceLabel.text = [NSString stringWithFormat:@"%@",output[@"amount"]];
        self.accumulatedIncomeLabel.text = [NSString stringWithFormat:@"%@",output[@"alincomeinterest"]];
        self.accumulatedBorrowOutLabel.text = [NSString stringWithFormat:@"%@",output[@"totallendamount"]];
        self.accumulatedInterestLabel.text = [NSString stringWithFormat:@"%@",output[@"totalinterest"]];
        self.accumulatedBorrowInLabel.text = [NSString stringWithFormat:@"%@",output[@"totalborrowamount"]];
    }];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
